# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tftp-fuzz
pkgver=1337
pkgrel=4
epoch=1
groups=('blackarch' 'blackarch-fuzzer')
pkgdesc='Master TFTP fuzzing script as part of the ftools series of fuzzers.'
url='http://nullsecurity.net/tools/fuzzer.html'
arch=('any')
license=('custom:unknown')
source=("https://github.com/nullsecuritynet/tools/raw/main/fuzzer/$pkgname/release/$pkgname.py")
sha512sums=('25e82f8c92a224ab804811477cba52bbbf93f38fb9c566b5894060daf8c42dbac1f551c57c90c4aeca80ad10c8c4772c30e2128381bc4b633636f1f6f82e3165')

prepare() {
  sed -i 's|env python|env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

